package com.le.lecommon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_user_role")
@ApiOperation(value = "role和user对应")
public class SysRoleUser {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "roleId")
    private Integer roleId;

    @ApiModelProperty(value = "userId")
    private Integer userId;
}
